# --*--coding=utf-8 --*--
"""
测试案例的实体类
"""
from auto_test.lib.data_util import str_to_dict


class TestCase(object):
    """
    CBS的测试用例类
    """

    def __init__(self, case_id, status=1):
        # 用例Id
        self.case_id = case_id
        # 用例状态:0 不可用，1可用
        self.status = status
        self.case_name = None
        self.requestDataList = []
        # 存放预期结果和断言
        self.expect_dict = {}

    def set_case_name(self, case_name):
        """
        用例数据名称
        :param case_name:
        :return:
        """
        self.case_name = case_name

    def set_status(self, status):
        """
        :param status:
        :return:
        """
        self.status = status
